var flag = 0;
var tn = 0;
var ff=!(document.all);
function ShowTab(id){
	var object, i = -1;
    while(object = document.getElementById('photoAdTab'+(++i)))object.style.display="none";
	object =document.getElementById('photoAdTab'+id);
	(object|| document.getElementById('photoAdTab0')).style.display="block";
	return object;
}
function overMenu(n){
	flag = 1;
	ShowTab(n);
}
function outMenu(){
	flag=0;
}
function run(){
	try
	{
		if(flag==0){
		  tn = ShowTab(tn) ? tn + 1 : 0;
		 }
	}
	catch(e)
	{}
}

function startrun(){
	 tims = window.setInterval("run()",3000);
}